//进行api的测试

export class ApiExamples {

    getUserInfo(){
        const params={
            success:function (res) {
                console.log(JSON.stringify(res));
            }
        };
       wx.getUserInfo(params);
    }

    login(){
        wx.login({
            success:function (res) {
                console.log(res);
            }
        });
    }

    getSettings(){
        wx.getSetting({
            success:function (res) {
                console.log(res);
            }
        });
    }

}